package com.test.apollo.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:xiaozhichao
 * @date:2020/12/1
 */
@RestController
public class HelloController {

    @Value("${selfname}")
    private String selfName;

    @Value("${apollo.meta}")
    private String apolloMeta;

    @RequestMapping("/sayHello")
    public String sayHello(){
        System.out.println("apolloMeta: " + apolloMeta);
        return "hello " + selfName;
    }
}
